package com.kzj.service;

import com.kzj.annotation.OnCreate;
import com.kzj.annotation.OnEdit;
import com.kzj.common.constant.GlobalConstant;
import com.kzj.common.exception.MyException;
import com.kzj.common.result.Result;
import com.kzj.pojo.College;
import com.kzj.pojo.Course;
import com.kzj.pojo.Teacher;
import com.kzj.pojo.vo.CourseVo;
import com.kzj.service.jpaRepository.CollegeJpaRepository;
import com.kzj.service.jpaRepository.CourseJpaRepository;
import com.kzj.service.jpaRepository.TeacherJpaRepository;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public interface CourseService {
    public Result add(Course course);
    public Result getAll();
    public Result getById(Course course);
    public Result updateById(Course course);
    public Result deleteById(Long courseId);

    Result getCourseByTeacherId(Long teacherId);
}
